﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Service.Consul
{
    public class ServerEntity
    {
        public string Url { get; set; }
        public string Name { get; set; }
        public List<ServiceEntity> ServiceEntities { get; set; }
    }

    public class ServiceEntity
    {
        public string Address { get; set; }
        public int Port { get; set; }
        public string Tags { get; set; }
        public HttpCheck HttpCheck { get; set; }
    }

    public class HttpCheck
    {
        public int DeregisterCriticalServiceAfter { get; set; }
        public int Interval { get; set; }
        public string CheckUrl { get; set; }
        public int Timeout { get; set; }
    }
}
